'''
Created on 20 Nov 2010

@author: tiberious
'''

from matroskaTagger import MatroskaTagReaderWriter

class MatroskaTagConverter:
    '''
    Matroska Tag Converter, convert standard tags into matroska Tags
    '''
    
    tag2mkv = {
        'Film': {
            'film.title': ('TITLE', 70, []),
            'film.actor': ('ACTOR', 70, []),
            'film.actor.character': ('CHARACTER', 70, [film.actor]),
            }
        }
    
    mkv2tag = {
        'Film': {
            ('TITLE', 70): ('film.title', []),
            ('ACTOR', 70): ('film.actor', []),
            ('CHARACTER', 70): ('film.actor.character', [film.actor]),
            }
        }


    def __init__(self, location):
        '''
        Constructor
        '''
        tagWriter = MatroskaTagReaderWriter(location)
        
    def readTags(self):
        
        tags = self.tagWriter.getTags()
        
        # convert into generic tags
        
        # get media type
        
    def writeTags(self, tags):
        
        
        